<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  
	<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
	
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"/>
	
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
	<link rel="stylesheet" type="text/css" media="all" id="customFont" href="" />
	
	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'rss2_url' ); ?>" />
	<link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'atom_url' ); ?>" />
	
    
	<?php
	if( function_exists( 'ot_get_option' ))
	{
		$favicon = ot_get_option( 'favicon' );
		if(!empty($favicon))
		{
		?>
		<!-- FAVICON -->
		<link rel="shortcut icon" href="<?php echo $favicon; ?>" />
		<?php
		}
	}
	?>
	
	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
	<?php wp_head(); ?>	

</head>
<!--[if lt IE 7 ]> <body <?php body_class('ie6'); ?>> <![endif]-->
<!--[if IE 7 ]>    <body <?php body_class('ie7'); ?>> <![endif]-->
<!--[if IE 8 ]>    <body <?php body_class('ie8'); ?>> <![endif]-->
<!--[if IE 9 ]>    <body <?php body_class('ie9'); ?>> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body <?php body_class(); ?>> <!--<![endif]-->

	
<!-- HEADER -->
<div id="header-wrapper">
 
        <div class="header">
        		
                <!-- LOGO HEADER -->
                <a href="<?php echo home_url(); ?>">
					<?php
					if( function_exists( 'ot_get_option' ))
					{
						?>
						<img class="logo" src="<?php echo ot_get_option('logo'); ?>" alt="<?php bloginfo( 'name' ); ?>" />
						<?php
					}
					?>
				</a>                
				                                
				
				
				<?php
				if( function_exists( 'ot_get_option' ))
				{
					$twitter_url 	= ot_get_option( 'twitter_url' );
					$facebook_url 	= ot_get_option( 'facebook_url' );
					$blogger_url 	= ot_get_option( 'blogger_url' );
					$picasa_url 	= ot_get_option( 'picasa_url' );
					$flickr_url 	= ot_get_option( 'flickr_url' );												
					$rss_url 		= ot_get_option( 'rss_url' );
					?>
					<ul class="social-nav">
					
						<?php
						if(!empty($twitter_url))
						{
							?>
							<li class="twitter"><a href="<?php echo $twitter_url; ?>"></a></li>
							<?php
						}						
						
						if(!empty($facebook_url))
						{
							?>
							<li class="facebook"><a href="<?php echo $facebook_url; ?>"></a></li>
							<?php
						}
						
						if(!empty($blogger_url))
						{
							
							?>
							<li class="bloger"><a href="<?php echo $blogger_url; ?>"></a></li>
							<?php
						}
						
						if(!empty($picasa_url))
						{
							?>
							<li class="picasa"><a href="<?php echo $picasa_url; ?>"></a></li>
							<?php
						}
						
						if(!empty($flickr_url))
						{
							?>
							<li class="flicker"><a href="<?php echo $flickr_url; ?>"></a></li>
							<?php
						}
						
						if(!empty($rss_url))
						{
							?>
							<li class="rss"><a href="<?php echo $rss_url; ?>"></a></li>
							<?php
						}
						?>
					</ul>   
					<?php
				}
				?>                     
                
				
                
                <!-- CONTACT PHONE AND MAIL IN HEADER -->
                <div class="head-contact">
						<?php
						if( function_exists( 'ot_get_option' ))
						{
							
							?>
                        	<h3><?php echo ot_get_option('phone_number'); ?></h3>
                        	<p>
								<a href="mailto:<?php echo ot_get_option( 'header_email' ); ?>">
									<?php echo ot_get_option('header_email' ); ?>
								</a>
							</p>
							<?php
						}
						?>
                </div>
				
				<?php
						// this code is to check required plugin installation and show notice to user for installing those plugins.
						// So, no need to provide localization support here
						if( !function_exists( 'ot_get_option' ) || !function_exists('bcn_display'))
						{
							?>
							<div class="plugin-notice">
								<p class="plugin-alert"><strong>Important:</strong> You need to install <a href="http://wordpress.org/extend/plugins/option-tree/">Option Tree</a> and <a href="http://wordpress.org/extend/plugins/breadcrumb-navxt/">Breadcrumb NavXT</a> plugins for this theme. Please read documentation for more help.</p>
							</div>                       	
							<?php
						}
				?>
				
         </div>       
         
         <!-- MAIN NAVIGATION -->
         <div class="nav-wrapper">
         		<div class="nav-container">
						<?php 
						if ( has_nav_menu( 'header-menu' ) ) 
						{
							wp_nav_menu( array( 
								 'theme_location' => 'header-menu',
								 'container' => false,
								 'menu_class'=>'main-nav' 
								 ) 
							);
						}
						?>
						
                        <!-- GLOBAL SEARCH -->
                        <div class="seach-wrapper">
                        		<form method="get" id="searchform" action="<?php echo home_url(); ?>">
										<p><input type="text" class="search-field" value="Search...." name="s" id="s"/></p>
										<p><input type="submit" class="submit-search" name="submit" id="searchsubmit" value=""/></p>
								</form>
                        </div>
				</div>
         </div>

</div><!-- CLOSING HEADER -->

<!-- BEGINNING PAGE WRAPPER and CONTAINER-->
<div id="wrapper">
	  <div class="container clearfix">